import request from '/@/utils/request';
const headers = {
	onlyData: true,
};
//提交
export const threeListSubmitApi = (data: any) => {
	return request({
		url: `/manage/threeList/staging`,
		method: 'post',
		data,
		headers: {
			onlyData: true,
		},
	});
};
//获取应用列表
export const appListApi = (data: any) => {
	return request({
		url: `/manage/threeList/getAppList`,
		method: 'post',
		headers,
		data,
	});
};

//列表查询
export const threeListPageApi = (params: any) => {
	return request({
		url: `/manage/threeList/pageInfo`,
		method: 'get',
		headers,
		params,
	});
};
//详情
export const threeListDetailApi = (params: any) => {
	return request({
		url: `/manage/threeList/getInfoDetail`,
		method: 'get',
		headers,
		params,
	});
};
//三张清单修改
export const threeListEditApi = (data: any) => {
	return request({
		url: `/manage/dataModify/submitApplication`,
		method: 'post',
		headers: {
			onlyData: true,
		},
		data,
	});
};
//三张清单删除
export const threeListDeleteApi = (data: any) => {
	return request({
		url: `/manage/threeList/deleteInfo`,
		method: 'DELETE',
		headers: {
			showSuccessMessage: true,
			onlyData: true,
		},
		data,
	});
};
//历史记录分页
export const threeListRecordsPageApi = (params: any) => {
	return request({
		url: `/manage/historyVersion/page`,
		method: 'get',
		headers,
		params,
	});
};
//历史记录详情
export const threeListRecordsDetailApi = (params: any) => {
	return request({
		url: `/manage/historyVersion/getDetailById`,
		method: 'get',
		headers,
		params,
	});
};
